//
//  MoveiModel.m
//  Koala_Fm
//
//  Created by dllo on 16/1/27.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MoveiModel.h"

@implementation MoveiModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"u"]) {
        self.name = value[@"name"];
        self.header = [value[@"header"]firstObject];
    }
    if ([key isEqualToString:@"video"]) {
        self.width = value[@"width"];
        self.height = value[@"height"];
        self.thumbnail = value[@"thumbnail"];
    }
}

@end
